using System;

namespace Edge.Common.ComponentModel
{
    [AttributeUsage(AttributeTargets.Property)]
    public class RequiredAttribute : Attribute
    {
        private bool isRequired = true;

        public RequiredAttribute(bool isRequired)
        {
            this.isRequired = isRequired;
        }

        public bool IsRequired
        {
            get { return isRequired; }
            set { isRequired = value; }
        }
    }
}
